Solving exponential equations that became quadratic equations